package lab02;


public class Test04 {
      //属性
    private String number;//员工编号
    private String name;//员工姓名
    private int salary;//员工基本工资
    private int increase;//员工薪水增长额
    //方法
    public String getName(){
        return name;
    }
    public String getNumber(){
        return number;
    }
    public int getSalary(){
        return salary;
    }
    public int getNewSalary(){
        return (salary+increase);
    }
    //构造函数
    public Test04(String number,String name,int salary,int increase){
        this.number = number;
        this.name = name;
        this.salary = salary;
        this.increase = increase;
    }

    public static void main(String[] args) {
        Test04 test04 = new Test04("2525110","肖睿",35000,1000);
        test04.getName();
        test04.getNumber();
        test04.getSalary();
        test04.getNewSalary();
    }

}
